package cn.hp.service;

import cn.hp.entity.Announcement;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AnnouncementService {
    public List<Announcement> selectAnnouncements(Announcement announcement);
    PageInfo<Announcement> selectAnnouncements(Announcement announcement, int page, int limit);
    int insertAnnouncement(Announcement announcement);
    int deleteAnnouncementById(Integer id);

    int updateAnnouncement(Announcement announcement);
}
